/*class OuterClass{
    public int data1 = 1;
    private int data2 = 2;
    private static int data3 = 3;
    class InnerClass{ //实例内部类，定义在class里
        public int data4 = 4;
        private int data5 = 5;
        public void test() {
            System.out.println(data4);
            System.out.println(data5);
            System.out.println("内部类的test方法");
        }
    }
    public void test(){
        System.out.println("外部类的test方法");
    }
}


interface A  {
    void test();*/
/*
public class Test1 {
    public static void main(String[] args) {
        new A() {//隐藏内部类,定义在main方法内
            @Override
            public void test() {
                System.out.println("123456");
            }
        }.test();
    }
    //获取实例内部类对象的时候依赖于外部类对象
    OuterClass outerClass = new OuterClass();
    OuterClass.InnerClass innerClass = outerClass.new InnerClass();
    innerClass.test();

    }
}
*/
